﻿<button @onclick="Click"> Count:@Count </button> 
@code { 
    [Parameter] 
    public int Count { get; set; }

    void Click() { Count++; } 
    }